package org.example;
import bean.Order;
import bean.Student;
import bean.User;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("spring.xml");
                new ClassPathXmlApplicationContext("springA.xml");
                new ClassPathXmlApplicationContext("spring2.xml");
        Order order = (Order)context.getBean("order");
        User user = (User)context.getBean("user");
        order.setData("2024年12月");
        user.setName("yr");
        user.setPassword("21045126");
        //System.out.println(user);

        Student student = (Student) context.getBean("student");
    }
}
